package com.petsdar.pojo;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

/**
 * Created with IntelliJ IDEA
 * User: heroC
 * Date: 2020/6/27
 * Time: 18:45
 * Description: 店铺信息类
 * Version: V1.0
 */

@Component
public class Shop implements Serializable {
    private static final long serialVersionUID = 62718451130L;
    /** 店铺ID */
    private BigInteger shopId;
    /** 店铺名称 */
    private String chain;
    /** 店铺电话 */
    private String shopTel;
    /** 店铺地址 */
    private String shopAddress;
    /** 店铺店长名 */
    private String shopKeeper;
    /** 店铺信息创建时间 */
    private Date spCreateTime;
    /** 店铺信息更新时间 */
    private Date spUpdateTime;

    public Shop() {
    }

    public Shop(BigInteger shopId,
                String chain,
                String shopTel,
                String shopAddress,
                String shopKeeper,
                Date spCreateTime,
                Date spUpdateTime) {
        this.shopId = shopId;
        this.chain = chain;
        this.shopTel = shopTel;
        this.shopAddress = shopAddress;
        this.shopKeeper = shopKeeper;
        this.spCreateTime = spCreateTime;
        this.spUpdateTime = spUpdateTime;
    }

    public Shop(BigInteger shopId,
                String chain,
                String shopTel,
                String shopAddress,
                String shopKeeper,
                Date spUpdateTime) {
        this.shopId = shopId;
        this.chain = chain;
        this.shopTel = shopTel;
        this.shopAddress = shopAddress;
        this.shopKeeper = shopKeeper;
        this.spUpdateTime = spUpdateTime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public BigInteger getShopId() {
        return shopId;
    }

    public void setShopId(BigInteger shopId) {
        this.shopId = shopId;
    }

    public String getChain() {
        return chain;
    }

    public void setChain(String chain) {
        this.chain = chain;
    }

    public String getShopTel() {
        return shopTel;
    }

    public void setShopTel(String shopTel) {
        this.shopTel = shopTel;
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public void setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress;
    }

    public String getShopKeeper() {
        return shopKeeper;
    }

    public void setShopKeeper(String shopKeeper) {
        this.shopKeeper = shopKeeper;
    }

    public Date getSpCreateTime() {
        return spCreateTime;
    }

    public void setSpCreateTime(Date spCreateTime) {
        this.spCreateTime = spCreateTime;
    }

    public Date getSpUpdateTime() {
        return spUpdateTime;
    }

    public void setSpUpdateTime(Date spUpdateTime) {
        this.spUpdateTime = spUpdateTime;
    }

    @Override
    public String toString() {
        return "Shop{" +
                "shopId=" + shopId +
                ", chain='" + chain + '\'' +
                ", shopTel='" + shopTel + '\'' +
                ", shopAddress='" + shopAddress + '\'' +
                ", shopKeeper='" + shopKeeper + '\'' +
                ", spCreateTime=" + spCreateTime +
                ", spUpdateTime=" + spUpdateTime +
                '}';
    }
}
